package com.lznAdmin.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lznAdmin.base.common.vo.DictVO;
import com.lznAdmin.system.entity.SysDictMain;
import com.lznAdmin.system.mapper.SysDictMainMapper;
import com.lznAdmin.system.service.SysDictMainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: lznAdmin-pro
 * @description:
 * @author: lzn
 * @create: 2022-01-24 16:45
 **/
@Service
public class SysDictMainServiceImpl extends ServiceImpl<SysDictMainMapper, SysDictMain> implements SysDictMainService {
    @Autowired
    private SysDictMainMapper sysDictMainMapper;

    @Override
    public List<DictVO> getMainAndSubListByCode(String dictCode) {
        return sysDictMainMapper.selecetMainAndSubList(dictCode);
    }
}
